package com.itheima.mapper;

import com.itheima.pojo.StudentOption;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Mapper
public interface ReportMapper {

    /**
     * 性别比例饼图
     * @return
     */
    @MapKey("name")
    List<Map> getEmpGenderData();

    /**
     * 员工职位和对应人数柱状图
     * @return
     */
    @MapKey("job")
    List<Map<String, Object>> selectEmpJobData();

    /**
     * 统计学生学历 饼图
     * @return
     */
    @MapKey("name")
    List<Map> selectStudentDegree();

    @MapKey("clazzList")
    List<Map<String,Object>> selectStudentCount();
}
